Hi Brad,
Zero(ish) and four(ish) levels are proper levels. But there should be TWO of them for A and also two of them for B. Sometimes called A+, A-, B+, B- or sometimes called A, /A, B, /B. The complementary signals are simply inverted so that when the A+ signal is high the A- signal is low, and similar for B+ and B-. The receiver circuit, Kanalog in this case, compares the levels of the two signals. Which one is higher determines the state of the signal. This is what provides the great noise immunity. There might be a 6V ground level difference between the driver and the receiver so the signals are both switching between 6V and 10V rather than 0V and 4V and the system will still work properly. If you are only connecting one of the two signals the behavior will be erratic as the other input that Kanalog will be comparing to will be floating. In the case that you only have single ended
signals (only one A and one B), you can connect them directly to KFLOP JP5 which bypasses the Kanalog differential receivers. But this will be much more noise sensitive.
I hope this helps
TK
Group: DynoMotion |
Message: 1022 |
From: b.parcels |
Date: 4/6/2011 |
Subject: Re: Kanalog Encoder issues |
Hi Tom,
Thanks for the clarification... unfortunately, the problem remains - I do have A+/A- B+/B- - however, it's almost like the complimentary signal doesn't drive... A+ referenced to ground doesn't show signal, A- referenced to ground shows no signal, same for B+, B-... It's only when referencing A+ to A- that the signal appears. As you describe it, a scope signal between A+ to A- should then switch between +4(ish) and -4(ish), right?
Cheers,
Brad
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Brad,
>
> Zero(ish) and four(ish) levels are proper levels. But there should be TWO of
> them for A and also two of them for B. Sometimes called A+, A-, B+, B- or
> sometimes called A, /A, B, /B. The complementary signals are simply inverted so
> that when the A+ signal is high the A- signal is low, and similar for B+ and
> B-. The receiver circuit, Kanalog in this case, compares the levels of the two
> signals. Which one is higher determines the state of the signal. This is what
> provides the great noise immunity. There might be a 6V ground level difference
> between the driver and the receiver so the signals are both switching between 6V
> and 10V rather than 0V and 4V and the system will still work properly. If you
> are only connecting one of the two signals the behavior will be erratic as
> the other input that Kanalog will be comparing to will be floating.  In the
> case that you only have single ended signals (only one A and one B), you can
> connect them directly to KFLOP JP5 which bypasses the Kanalog differential
> receivers. But this will be much more noise sensitive.
>
> I hope this helps
> TK
>
>
>
>
> ________________________________
> From: b.parcels <bparcels@...>
> To: DynoMotion@yahoogroups.com
> Sent: Wed, April 6, 2011 11:07:13 AM
> Subject: [DynoMotion] Kanalog Encoder issues
>
> Â
> Hi all,
> I am sure I'm just doing something goofy here, but for the life of me, I cannot
> get these darn encoders to work...
>
> I've got several Renishaw linear encoders that should be putting out rs422A
> digital signals... I was having very erratic behavior (not working at all) when
> connected to the KAnalog board, so I am looking at them on an oscilloscope:
>
> Look like great little square waves - even cleaner if I terminate them
> properly... HOWEVER ... It looks like a single-ended signal - I only see
> zero(ish) or four(ish) volts. The signals are proper quadrature form, and in
> sync - just look single-ended (and perhaps not full strength).
>
> I haven't actually worked with rs422 before, but my understanding is that I
> should be seeing plus 5(ish) to minus 5(ish) volts... is that not correct?
>
> For what it's worth - the encoders are powered directly from the KAnalog, and
> that has an ATX PSU for KFlop and itself.
>
> Are my encoder differential drivers shot - if so, can I just buffer the signals
> somehow? Potential wiring issue? Am I just being clueless?
>
> Thanks so much for any suggestions!
> -Brad
>
> P.S. Sorry about all the (ish)s... I think I've lost it
>
|
|
Group: DynoMotion |
Message: 1023 |
From: b.parcels |
Date: 4/6/2011 |
Subject: Re: Kanalog Encoder issues |
Hello again,
I'm not sure if this is getting better, or worse... I can see the complimentary traces (A+, with a perfect mirror A-), but only when the reference is one of the B signals... To clarify:
CH1
signal: A+
ref: B-
CH2
signal: A-
ref: B-
gives a great pair of complimentary signals... but
CH1
signal: A+
ref: A-
does not invert as I would expect (have I confused myself here?)
in any case - there does appear to be some good complimentary action here somewhere...
Cheers,
Brad
--- In DynoMotion@yahoogroups.com, "b.parcels" <bparcels@...> wrote:
>
> Hi Tom,
> Thanks for the clarification... unfortunately, the problem remains - I do have A+/A- B+/B- - however, it's almost like the complimentary signal doesn't drive... A+ referenced to ground doesn't show signal, A- referenced to ground shows no signal, same for B+, B-... It's only when referencing A+ to A- that the signal appears. As you describe it, a scope signal between A+ to A- should then switch between +4(ish) and -4(ish), right?
>
> Cheers,
> Brad
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Brad,
> >
> > Zero(ish) and four(ish) levels are proper levels. But there should be TWO of
> > them for A and also two of them for B. Sometimes called A+, A-, B+, B- or
> > sometimes called A, /A, B, /B. The complementary signals are simply inverted so
> > that when the A+ signal is high the A- signal is low, and similar for B+ and
> > B-. The receiver circuit, Kanalog in this case, compares the levels of the two
> > signals. Which one is higher determines the state of the signal. This is what
> > provides the great noise immunity. There might be a 6V ground level difference
> > between the driver and the receiver so the signals are both switching between 6V
> > and 10V rather than 0V and 4V and the system will still work properly. If you
> > are only connecting one of the two signals the behavior will be erratic as
> > the other input that Kanalog will be comparing to will be floating.  In the
> > case that you only have single ended signals (only one A and one B), you can
> > connect them directly to KFLOP JP5 which bypasses the Kanalog differential
> > receivers. But this will be much more noise sensitive.
> >
> > I hope this helps
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: b.parcels <bparcels@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Wed, April 6, 2011 11:07:13 AM
> > Subject: [DynoMotion] Kanalog Encoder issues
> >
> > Â
> > Hi all,
> > I am sure I'm just doing something goofy here, but for the life of me, I cannot
> > get these darn encoders to work...
> >
> > I've got several Renishaw linear encoders that should be putting out rs422A
> > digital signals... I was having very erratic behavior (not working at all) when
> > connected to the KAnalog board, so I am looking at them on an oscilloscope:
> >
> > Look like great little square waves - even cleaner if I terminate them
> > properly... HOWEVER ... It looks like a single-ended signal - I only see
> > zero(ish) or four(ish) volts. The signals are proper quadrature form, and in
> > sync - just look single-ended (and perhaps not full strength).
> >
> > I haven't actually worked with rs422 before, but my understanding is that I
> > should be seeing plus 5(ish) to minus 5(ish) volts... is that not correct?
> >
> > For what it's worth - the encoders are powered directly from the KAnalog, and
> > that has an ATX PSU for KFlop and itself.
> >
> > Are my encoder differential drivers shot - if so, can I just buffer the signals
> > somehow? Potential wiring issue? Am I just being clueless?
> >
> > Thanks so much for any suggestions!
> > -Brad
> >
> > P.S. Sorry about all the (ish)s... I think I've lost it
> >
>
|
|
Group: DynoMotion |
Message: 1024 |
From: Tom Kerekes |
Date: 4/6/2011 |
Subject: Re: Kanalog Encoder issues |
Hi Brad,
Are you using a scope? Is the scope grounded? When you say "ref" are you referring to the scope ground? If so, if you connect it to A- you may be shorting that pin to ground.
Regards
TK
Group: DynoMotion |
Message: 1025 |
From: b.parcels |
Date: 4/6/2011 |
Subject: Re: Kanalog Encoder issues |
Hi Tom,
Yes, I'm using an oscilloscope... By "ref", I mean that I'm connecting the reference lead for that channel.
In any case - I think you were bang on about the scope shorting the pin to ground... just using a voltmeter on the pair (A+, A-) shows either + or - 3.25V as the stage is moved... which leads to the big question - is 3.25V too low, or what is going on?
Thanks so much for your help,
Brad
|
|
Group: DynoMotion |
Message: 1026 |
From: Tom Kerekes |
Date: 4/6/2011 |
Subject: Re: Kanalog Encoder issues |
Hi Brad,
Yes that would indicate the A+ and A- are working. That is plenty of voltage for the receiver I think it actually only needs much less than a volt. How about B+ and B- ?
But if you connect your scope ground to the ground for the encoders you should see ~0V to ~4V switching on each signal.
There has to be a ground connection between The encoders and Kanalog.
If you look on the Digital I/O Screen you should be able to see the bits toggle as you move. IO0 is derived from A0+ and A0- and IO1 is derived from B0+ and B0-
Regards
TK
Group: DynoMotion |
Message: 1027 |
From: b.parcels |
Date: 4/6/2011 |
Subject: Re: Kanalog Encoder issues |
Hi Tom,
Sorry - I meant to say that yes, that is the case for both pairs (that is, both pairs switch between +3.25 and -3.25)...
Just found something really quite strange though... seems that by grounding any of the other wires (A+, A-, B+, B-, Z+, Z-) it works properly! In fact - it looks like unless you do ground one of them, the LED on the readhead doesn't even go on (sorry - never noticed that earlier, as I need a mirror and some contortions just to see the thing - also, the tricky scope grounding hid this problem).
SO... YAY - it looks like my encoder is reading properly with KAnalog now (count behaves, and actually changes when I move it!)... However - What is the proper way to deal with this, and any idea why it is happening?
For instance - I have it working now, by simply leaving Z+ disconnected, and using Z- as ground. Don't know why - but it works. To get full functionality - should I:
- leave Z- connected to a dedicated GND, and use Z+ as a single ended signal
- connect Z- and Z+ to another differential input, but tie Z- to GND at the same time?
- something else?
Thanks so much for your help + patience!
Brad
|
|
Group: DynoMotion |
Message: 1028 |
From: Tom Kerekes |
Date: 4/6/2011 |
Subject: Re: Kanalog Encoder issues |
Hi Brad,
Shorting outputs to ground is not a good thing to do.
It sounds like there is no ground connection between Kanalog and the Encoder. Is there? Check with an ohm meter to make sure there isn't a break in the wire.
Also how are you applying +5V to the encoder?
Regards
TK
Group: DynoMotion |
Message: 1029 |
From: b.parcels |
Date: 4/6/2011 |
Subject: Re: Kanalog Encoder issues |
Hi Tom,
All of the signals/power are coming in on the single cable which is sealed to the read-head... The +5V is supplied through here, as are the grounds and signals. Both +5V and GND are direct from the KAnalog headers.
Unfortunately, as I mentioned, the cable is sealed into the head, unbroken up to the end that I'm working with.
Cheers,
Brad
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Brad,
>
> Shorting outputs to ground is not a good thing to do.
>
> It sounds like there is no ground connection between Kanalog and the Encoder.Â
> Is there? Check with an ohm meter to make sure there isn't a break in the wire.
>
> Also how are you applying +5V to the encoder?
>
> Regards
> TK
>
>
>
>
> ________________________________
> From: b.parcels <bparcels@...>
> To: DynoMotion@yahoogroups.com
> Sent: Wed, April 6, 2011 3:14:56 PM
> Subject: [DynoMotion] Re: Kanalog Encoder issues
>
> Â
> Hi Tom,
> Sorry - I meant to say that yes, that is the case for both pairs (that is, both
> pairs switch between +3.25 and -3.25)...
>
>
> Just found something really quite strange though... seems that by grounding any
> of the other wires (A+, A-, B+, B-, Z+, Z-) it works properly! In fact - it
> looks like unless you do ground one of them, the LED on the readhead doesn't
> even go on (sorry - never noticed that earlier, as I need a mirror and some
> contortions just to see the thing - also, the tricky scope grounding hid this
> problem).
>
> SO... YAY - it looks like my encoder is reading properly with KAnalog now (count
> behaves, and actually changes when I move it!)... However - What is the proper
> way to deal with this, and any idea why it is happening?
>
> For instance - I have it working now, by simply leaving Z+ disconnected, and
> using Z- as ground. Don't know why - but it works. To get full functionality -
> should I:
>
> - leave Z- connected to a dedicated GND, and use Z+ as a single ended signal
>
> - connect Z- and Z+ to another differential input, but tie Z- to GND at the same
> time?
>
> - something else?
>
> Thanks so much for your help + patience!
> Brad
>
|
|
Group: DynoMotion |
Message: 1030 |
From: Tom Kerekes |
Date: 4/6/2011 |
Subject: Re: Kanalog Encoder issues |
Hi Brad,
Well are you sure you are on the right pins?
Try to just apply +5V and Ground to the connector. Does the LED come on?
Does an ohm meter show any connectivity from the +5V to the ground or does it read like an open circuit?
Do you have more than one to try?
Does this cable go through a rolling loop that flexes the cable a lot?
Regards
TK
Group: DynoMotion |
Message: 1031 |
From: b.parcels |
Date: 4/6/2011 |
Subject: Re: Kanalog Encoder issues |
Hi Tom,
Turns out that there was a break in the ground line about a half inch above the connector (at an overtightened stress-relief). Can't thank you enough for sticking this out and helping me debug this thing... (And for not letting me leave it at grounding an output!) Certainly would have taken me days to get there without your help (assuming I didn't wreck something first!).
Can't wait to see what your boards can really do now!
Thanks again,
Brad
|
|
| | | | | | | | | |